package com.jdplat.jdm.core.web.dao;

import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * Created by qirp on 2016/11/15.
 */
public interface IBaseDao <T, PK extends Serializable>{
	
	public abstract List queryForList(String s, Object obj);
	
	public abstract void insert(String s, Object obj);

    public abstract void insert(String s);

    public abstract List queryForList(String s);

//    public abstract List queryForPage(String s, Dto dto)
//        throws SQLException;

    public abstract List queryForPage(String s,Map map) throws SQLException;
    
    public abstract int update(String s, Object obj);

    public abstract int update(String s);

    public abstract int delete(String s, Object obj);

    public abstract int delete(String s);

    public abstract Connection getConnection()
        throws SQLException;

}
